<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<input type="buttun" id="btn1" value="btn">
<input type="buttun" id="btn2" value="btn">
<input type="buttun" id="btn3" value="btn">
<p>11111</p>
<input type="buttun" id="btn4" value="btn">
<input type="buttun" id="btn5" value="btn">
<input type="buttun" id="btn6" value="btn">
<p>222222</p>
<input type="buttun" id="btn7" value="btn">
<input type="buttun" id="btn8" value="btn">
<input type="buttun" id="btn9" value="btn">
<p>333333</p>
<input type="buttun" id="btn10" value="btn">

<script>
    function fn1() {
        let btn1 = document.getElementById('btn1')
        let btn3 = document.getElementById('btn3')
        let btn5 = document.getElementById('btn5')
        let btn7 = document.getElementById('btn7')
        let btn9 = document.getElementById('btn9')
    }

    function fn1() {
        let obj = document
        let btn1 = obj.getElementById('btn1')
        let btn3 = obj.getElementById('btn3')
        let btn5 = obj.getElementById('btn5')
        let btn7 = obj.getElementById('btn7')
        let btn9 = obj.getElementById('btn9')
    }
</script>
</body>

</html>